You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 rivejä
407 B

  1. <template>
  2. <div />
  3. </template>
  4. <script setup>
  5. import { articleUrl, useArticleDetail } from '~/composables/useArticle'
  6. // 兼容旧 sitemap 中的百科详情地址,并收敛到当前资讯规范路径。
  7. const nuxtApp = useNuxtApp()
  8. const { detail } = await useArticleDetail()
  9. await nuxtApp.runWithContext(() =>
  10. navigateTo(articleUrl(detail.value), { redirectCode: 301, replace: true }))
  11. </script>